
import { _rotate2, _scale } from '../math/index.js'
// 控制点
export const controlPoints = ([from, to], skew = 0, amplitude = 1) => {
    let [c1, c2] = _rotate2([from, to], skew + 90)
    if (amplitude !== 1) {
        return _scale([c1, c2], amplitude)
    }
    return [c1, c2]
}